<template>
  <div class="error-page">
    <div class="error-content">
      <h1>404</h1>
      <h2>抱歉，页面不存在</h2>
      <p>您访问的页面可能已被删除、名称已更改或暂时不可用</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style lang="scss" scoped>
.error-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
  
  .error-content {
    text-align: center;
    padding: 40px;
    
    h1 {
      font-size: 120px;
      color: #2468f2;
      margin: 0;
      line-height: 1.2;
    }
    
    h2 {
      font-size: 24px;
      color: #303133;
      margin: 20px 0;
    }
    
    p {
      font-size: 16px;
      color: #606266;
      margin-bottom: 30px;
    }
  }
}
</style> 